<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('goods', 'GoodsController');
    $router->resource('managers', 'ManagersController');
    $router->resource('dealers', 'DealersController');
    $router->resource('winners', 'WinnersController');
    $router->resource('orderpolicy', 'OrderPolicyController');
    $router->resource('activitystatus', 'ActivityStatusController');
    $router->resource('fakers', 'FakeRankController');
    $router->post('fakeranks/{id}', 'FakeRankController@api');
    $router->resource('fakedealers', 'FakeDealersController');
    $router->post('reset_faker', 'FakeDealersController@resetFaker');
});
